package net.flowas.genericcrud.service.chain;

import net.flowas.genericcrud.ExecuteContext;

public abstract class AbstractExecuteHandler implements ExecuteHandler {
	private ExecuteHandler next;

	public AbstractExecuteHandler(ExecuteHandler next) {
		this.next = next;
	}

	/* (non-Javadoc)
	 * @see net.flowas.shareboard.service.chain.ExecuteHandler#handleRequest(net.flowas.shareboard.service.chain.ExecuteContext)
	 */
	@Override
	public void handleRequest(ExecuteContext req) {
		if (next != null) {
			next.handleRequest(req);
		}
	}
}
